import request from '@/utils/request'

// 查询用户提现记录列表
export function listQdWithdrawal (query) {
  return request({
    url: '/system/qdWithdrawal/list',
    method: 'get',
    params: query
  })
}

// 查询用户提现记录详细
export function getQdWithdrawal (id) {
  const params = {
    'id': id
  }
  return request({
    url: '/system/qdWithdrawal/getInfo',
    method: 'get',
    params: params
  })
}

// 新增用户提现记录
export function addQdWithdrawal (data) {
  return request({
    url: '/system/qdWithdrawal/insert',
    method: 'post',
    data: data
  })
}

// 修改用户提现记录
export function updateQdWithdrawal (data) {
  return request({
    url: '/system/qdWithdrawal/update',
    method: 'post',
    data: data
  })
}

// 删除用户提现记录
export function delQdWithdrawal (id) {
  const params = {
    'id': id
  }
  return request({
    url: '/system/qdWithdrawal/delete',
    method: 'post',
    params: params
  })
}
// 批量删除用户提现记录
export function delBatchQdWithdrawal (ids) {
  const params = {
    'ids': ids
  }
  return request({
    url: '/system/qdWithdrawal/deleteBatch',
    method: 'post',
    params: params
  })
}

// 导入用户提现记录
export function importData (data) {
  return request({
    url: '/system/qdWithdrawal/importData',
    method: 'post',
    data: data
  })
}
